package homework.hw1;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class ListTest {
    public static void main(String[] args) {
        Random rm = new Random();
        List<Integer> list = new ArrayList<>();
        int [] arr = new int[10];
        for (int i = 0;i<arr.length;++i) {
            arr[i] = rm.nextInt(100)+1;
        }
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] >= 10) {
                list.add(arr[i]);
            }
        }
        System.out.println(Arrays.toString(arr));
        for(Integer e : list) {
            System.out.print(e+" ");
        }
    }
}
